<?php

namespace backend\models;

use Yii;

/**
 * This is the model class for table "{{%employees}}".
 *
 * @property int $employeeId 自增编号
 * @property string $mobile 手机号码
 * @property string $password 密码
 * @property string $passwordKey 密码密钥
 * @property string $workNo 工号
 * @property int $regTime 创建时间（时间戳）
 */
class Employees extends \common\models\Employees
{
    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['regTime'], 'integer'],
            [['mobile'], 'string', 'min' => 11, 'max' => 11],
            [['password'], 'string', 'max' => 200],
            [['passwordKey'], 'string', 'max' => 64],
            [['workNo'], 'string', 'max' => 30],
            [['mobile'], 'required'],
            [['password'], 'required'],
            [['workNo'], 'required'],
        ];
    }
}
